const TokenKey = "jwt";

// 获取token
export function getToken() {
  return localStorage.getItem(TokenKey);
}

// 设置token
export function setToken(token) {
  return localStorage.setItem(TokenKey, token);
}

// 清除token
export function removeToken() {
  return localStorage.removeItem(TokenKey);
}

// 获取记住密码选项
export function getRememberPassword() {
  return localStorage.getItem("rememberPassword");
}

// 设置记住密码选项
export function setRememberPassword(data) {
  return localStorage.setItem("rememberPassword", data);
}
